import request from '@/utils/request'

// 查询vip下载记录列表
export function listDownload(query) {
  return request({
    url: '/video/download/list',
    method: 'get',
    params: query
  })
}

// 查询vip下载记录详细
export function getDownload(id) {
  return request({
    url: '/video/download/' + id,
    method: 'get'
  })
}

// 新增vip下载记录
export function addDownload(data) {
  return request({
    url: '/video/download',
    method: 'post',
    data: data
  })
}

// 修改vip下载记录
export function updateDownload(data) {
  return request({
    url: '/video/download',
    method: 'put',
    data: data
  })
}

// 删除vip下载记录
export function delDownload(id) {
  return request({
    url: '/video/download/' + id,
    method: 'delete'
  })
}
